package 继承;

public class demo1 {
    public static void main(String[] args) {
        b x = new b();
        x.print();
        cat a = new cat();
        a.rat();
        v.look();

    }
}
class v{
    int age = 18;
    public static void look(){
        System.out.println("look");
    }
    public void eat(){
        System.out.println("在吃饭");
    }
}
class b extends v{
    int id = 001;
    public void eat(){
        System.out.println("在弹吉他");
    }
    public void print(){
        super.eat();
    }
}